<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>Class: Apple | Class: Apple</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/bootstrap.min.css">
    <link type="text/css" rel="stylesheet" href="styles/prettify-jsdoc.css">
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/tui-doc.css">

    
</head>
<body>
<nav class="lnb" id="lnb">
    <div class="logo" style="">
        
            <img src="img/toast-ui.png" width="100%" height="100%">
        
    </div>
    <div class="title">
        <h1><a href="index.html" class="link">Class: Apple</a></h1>
        
    </div>
    <div class="search-container" id="search-container">
        <input type="text" placeholder="Search">
        <ul></ul>
    </div>
    
    <div class="lnb-api hidden"><h3>Classes</h3><ul><li><a href="Alive.html">Alive</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Alive_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Alive.html#energy">energy</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="Alive.html#survive">survive</a></li></ul></div></li><li><a href="Apple.html">Apple</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Apple_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Apple.html#color">color</a></li><li><a href="Apple.html#energy">energy</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="Apple.html#survive">survive</a></li></ul><div class="member-type">Events</div><ul class="inner"><li><a href="Apple.html#event:beEaten">beEaten</a></li></ul></div></li><li><a href="Energy.html">Energy</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Energy_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Energy.html#amount">amount</a></li><li><a href="Energy.html#unit">unit</a></li></ul></div></li><li><a href="Environment.html">Environment</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Environment_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Environment.html#livingThings">livingThings</a></li><li><a href="Environment.html#name">name</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="Environment.html#start">start</a></li></ul><div class="member-type">Events</div><ul class="inner"><li><a href="Environment.html#event:beforeDestroy">beforeDestroy</a></li></ul></div></li><li><a href="Tree.html">Tree</a><button type="button" class="hidden toggle-subnav btn btn-link">  <span class="glyphicon glyphicon-plus"></span></button><div class="hidden" id="Tree_sub"><div class="member-type">Members</div><ul class="inner"><li><a href="Tree.html#branches">branches</a></li><li><a href="Tree.html#energy">energy</a></li></ul><div class="member-type">Methods</div><ul class="inner"><li><a href="Tree.html#crop">crop</a></li><li><a href="Tree.html#survive">survive</a></li></ul></div></li></ul></div><div class="lnb-api hidden"><h3><a href="global.html">Global</a></h3></div>
</nav>
<div id="resizer"></div>

<div class="main" id="main">
    




<section>

<header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>Apple<span class="signature">()</span><span class="type-signature"></span></h2>
        
            <div class="class-description"><p>Donec imperdiet dignissim semper. Sed vehicula purus dui, eget porta lectus convallis sagittis. Suspendisse ac lectus dignissim, tincidunt nisi quis, gravida metus.</p></div>
        
    
</header>

<article>
    
        <div class="container-overview">
        
            

<dt>
    
        <h4 class="name" id="Apple">
            
                new <span class="type-signature"></span>Apple<span class="signature">()</span><span class="type-signature"></span>
                
            
            <div class="container-source members">
                <code><a href="Apple.js.html">Apple.js</a></code>,
                <code><a href="Apple.js.html#line6">line 6</a></code>
            </div>
            
        </h4>

        
    
</dt>
<dd>

    

    

    

    

    

    

    

    

    

    

    

    


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


    

</dd>

        
        </div>
    

    
        <h3 class="subsection-title">Extends</h3>

        


    <ul>
        <li><a href="Alive.html">Alive</a></li>
    </ul>


    

    

    

    

    

    

    
        <h3 class="subsection-title">Members</h3>

        <dl>
            

<dt>
<h4 class="name" id="color">
    <span class="type-signature"></span>color<span class="type-signature"> :String</span>
    
    <div class="container-source members">
        <code><a href="Apple.js.html">Apple.js</a></code>,
        <code><a href="Apple.js.html#line13">line 13</a></code>
    </div>
    
</h4>


</dt>
<dd>
    
    <div class="description">
        <p>Donec imperdiet dignissim</p>
    </div>
    

    <!--
    
        <h5>Type:</h5>
        <ul>
            <li>
                
<span class="param-type">String</span>


            </li>
        </ul>
    
    -->

    


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


    

    
</dd>

        
            

<dt>
<h4 class="name" id="energy">
    <span class="type-signature"></span>energy<span class="type-signature"></span>
    
    <div class="container-source members">
        <code><a href="Alive.js.html">Alive.js</a></code>,
        <code><a href="Alive.js.html#line11">line 11</a></code>
    </div>
    
</h4>


</dt>
<dd>
    
    <div class="description">
        <p>amount of energy</p>
    </div>
    

    <!--
    
    -->

    


    <h5 class="subsection-title">Properties:</h5>

    

<table class="props">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>the</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Energy.html">Energy</a></span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>




<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a href="Alive.html#energy">Alive#energy</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


    

    
</dd>

        </dl>
    

    
        <h3 class="subsection-title">Methods</h3>

        <dl>
                

<dt>
    
        <h4 class="name" id="survive">
            
                <span class="type-signature"></span>survive<span class="signature">(environment)</span><span class="type-signature"> &rarr; {<a href="Energy.html">Energy</a>}</span>
                
            
            <div class="container-source members">
                <code><a href="Alive.js.html">Alive.js</a></code>,
                <code><a href="Alive.js.html#line18">line 18</a></code>
            </div>
            
        </h4>

        
    
</dt>
<dd>

    

    

    

    

    
    <div class="container-params">
        <h5>Parameters:</h5>
        
<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>environment</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Environment.html">Environment</a></span>


            
            </td>

            

            

            <td class="description last"><p>the environment when this Alive thing is surviving</p></td>
        </tr>

    
    </tbody>
</table>

    </div>
    

    

    

    

    

    

    
    <div class="container-returns">
        <h5>Returns:</h5>
        
                



<span class="param-type"><a href="Energy.html">Energy</a></span>





- <p>the energy wasted in this surviving instance</p>




            
    </div>
    

    


<dl class="details">

    

    

    
    <dt class="inherited-from">Inherited From:</dt>
    <dd class="inherited-from"><ul class="dummy"><li>
        <a href="Alive.html#survive">Alive#survive</a>
    </li></ul></dd>
    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


    

</dd>

            </dl>
    

    

    
        <h3 class="subsection-title">Events</h3>

        <dl>
            

<dt>
    
        <h4 class="name" id="event:beEaten">
            
                beEaten
                
            
            <div class="container-source members">
                <code><a href="Apple.js.html">Apple.js</a></code>,
                <code><a href="Apple.js.html#line17">line 17</a></code>
            </div>
            
        </h4>

        
    
</dt>
<dd>

    
    <div class="description">
        <p>Sed vehicula purus dui</p>
    </div>
    

    

    
        <h5>Type:</h5>
        <ul>
            <li>
                
<span class="param-type"><a href="Energy.html">Energy</a></span>


            </li>
        </ul>
    

    

    

    

    

    

    

    

    

    


<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    
</dl>


    

</dd>

        </dl>
    
</article>

</section>




</div>

<footer>
    <img class="logo" src="img/toast-ui.png" style="">
    <div class="footer-text">NHN Entertainment. Frontend Development Lab</div>
</footer>
<script>prettyPrint();</script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/tui-doc.js"></script>
<script src="scripts/linenumber.js"></script>

    <script>
        var id = 'Apple_sub'.replace(/"/g, '_');
        var selectedApi = document.getElementById(id); // do not use jquery selector
        var $selectedApi = $(selectedApi);

        $selectedApi.removeClass('hidden');
        $selectedApi.parent().find('.glyphicon').removeClass('glyphicon-plus').addClass('glyphicon-minus');
        showLnbApi();
    </script>

</body>
</html>